//
//  Dealers.m
//  CarHome
//
//  Created by lanou3g on 15-5-2.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "Dealers.h"
#import "Dealer.h"

@implementation Dealers


- (instancetype)init
{
    self = [super init];
    if (self) {
        _dealerlist = [[NSMutableArray alloc] initWithCapacity:0];
    }
    return self;
}

- (void)setDealerlist:(NSMutableArray *)dealerlist {
    for (NSMutableDictionary *item in dealerlist) {
        Dealer *d = [[Dealer new] autorelease];
        [d setValuesForKeysWithDictionary:item];
        [_dealerlist addObject:d];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (void)dealloc
{
    [_pagecount release];
    [_pageindex release];
    [_rowcount release];
    [_dealerlist release];
    
    [super dealloc];
}

@end
